#嵌套字典
d={"一班":["Tomas","Lucas","刘易斯","武义思"],"二班":{"老吴":"马鞍山人","小张":"阜阳人","小宋":"杭州人"},"三班":{"xiaoma":"hefei"}}
l=[16,35,22,15,14]
d["六班"]=l
print(d)
print(len(d))
d.setdefault("六班","没人")
print(d)
d.setdefault("8班","没人")
print(d)
str=input("请输入要删除的key:")
#b=d.get(str)
b=d.pop(str)
#d.__contains__(str)

print(b,"被删除了、、、")
print("删除后：",d)